package com.scau.data.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("repair_goods_factory")
public class RepairGoodsFactoryDO {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Integer factoryId; // 返修工厂
    private String problem; // 问题
    private Date time; // 时间
    private Integer serviceId; // 售后点
    private String barCode; // 商品码
    private BigDecimal cost;// 花费

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getFactoryId() {
        return factoryId;
    }

    public void setFactoryId(Integer factoryId) {
        this.factoryId = factoryId;
    }

    public String getProblem() {
        return problem;
    }

    public void setProblem(String problem) {
        this.problem = problem;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getServiceId() {
        return serviceId;
    }

    public void setServiceId(Integer serviceId) {
        this.serviceId = serviceId;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public BigDecimal getCost() {
        return cost;
    }

    public void setCost(BigDecimal cost) {
        this.cost = cost;
    }

    @Override
    public String toString() {
        return "RepairGoodsFactoryDO{" +
                "id=" + id +
                ", factoryId=" + factoryId +
                ", problem='" + problem + '\'' +
                ", time=" + time +
                ", serviceId=" + serviceId +
                ", barCode='" + barCode + '\'' +
                ", cost=" + cost +
                '}';
    }
}
